package com.ruoyi.mapper;

import com.ruoyi.domain.Base64;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface Base64Mapper {

    @Insert("insert into base64 values(#{id}, #{base64Url}, #{width}, #{height}, #{filePath})")
    int insert(Base64 base64);

    @Select("select id, base64_url as base64Url, file_path as filePath, width, height from base64")
    List<Base64> getBase64List();
}
